%{--
  -  Copyright 2016-2019 新商态（北京）科技有限公司
  -
  -  Licensed under the Apache License, Version 2.0 (the "License");
  -  you may not use this file except in compliance with the License.
  -  You may obtain a copy of the License at
  -
  -      http://www.apache.org/licenses/LICENSE-2.0
  -
  -  Unless required by applicable law or agreed to in writing, software
  -  distributed under the License is distributed on an "AS IS" BASIS,
  -  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  -  See the License for the specific language governing permissions and
  -  limitations under the License.
  --}%

<s:col name="error_page">
<g:include view="themes/${application.$theme}/layouts/_common.gsp"/>
<%-- ================请你将错误页面内容复制到这里 start=============--%>
<%-- ================ The page serves for 'Error',You can change the content start============= --%>
<!doctype html>
<html>
    <head>
        <title><g:if env="development"><g:message code="goldsite.siteName" default="${application.$siteName}"/> Runtime Exception</g:if><g:else>Error</g:else></title>
        %{--<meta name="layout" content="main">--}%
        <g:if env="development"><asset:stylesheet src="errors.css"/></g:if>
    </head>
    <body>
        <g:if env="development">
            <g:if test="${Throwable.isInstance(exception)}">
                <g:renderException exception="${exception}" />
            </g:if>
            <g:elseif test="${request.getAttribute('javax.servlet.error.exception')}">
                <g:renderException exception="${request.getAttribute('javax.servlet.error.exception')}" />
            </g:elseif>
            <g:else>
                <ul class="errors">
                    <li>An error has occurred</li>
                    <li>Exception: ${exception}</li>
                    <li>Message: ${message}</li>
                    <li>Path: ${path}</li>
                </ul>
            </g:else>
        </g:if>
        <g:else>
            <ul class="errors">
                <li>An error has occurred</li>
            </ul>
        </g:else>
    </body>
</html>
<%-- ================ The page serves for 'Error',You can change the content end============= --%>
<%-- ================请你将错误页面内容复制到这里 end=============--%>
</s:col>